﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Laugh.Data;
using NHibernate.Mapping.ByCode.Conformist;
using NHibernate.Mapping.ByCode;

namespace LaughTest.Domain
{
    public class CategoryMapping : ClassMapping<Category>
    {
        public CategoryMapping()
        {
            Id(p => p.Id, m => m.Generator(Generators.Identity));

            Property(p => p.Name);
            Property(p => p.InUse);

            Table("LA_CATEGORY");
        }
    }
}
